// app.js

import http from './utils/http'
import QQMapWX from './libs/qqmap-wx-jssdk.js';

wx.http = http
var qqmapsdk = new QQMapWX({
  key: 'UIFBZ-VYZLN-BHXFA-SVDDH-424K6-T3FTI'
})

wx.qqmap = qqmapsdk

App({
  token: wx.getStorageSync('token') || "",
  refreshToken: wx.getStorageSync('refreshToken') || "",
  setToken(tokenkey, tokenValue) {
    this[tokenkey] = tokenValue
    wx.setStorageSync(tokenkey, tokenValue)
  },
  globalData: {},
})
